package com.wx.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONObject;
import com.wx.entity.WxMenu;
import com.wx.entity.WxMenuExample;

public interface WxMenuService {
	public int insert(WxMenu wxMenu);

	public List<WxMenu> selectByExample(WxMenuExample example);

	public WxMenu selectByPrimaryKey(Integer id);

	public int countByExample(WxMenuExample example);

	public int updateByExample(@Param("record") WxMenu record,@Param("example") WxMenuExample example);

	public int updateByPrimaryKey(@Param("record") WxMenu record);
	
	public int deleteByPrimaryKey(Integer id);

	public int deleteByPrimaryKey(WxMenuExample example);
	
	public boolean createWxMenus(int uid,String wxid,String appId, String appSecret,String menuJson);
	
	public JSONObject deleteWxMenus(String accessToken);

	int updateByExampleSelectAble(WxMenu record,WxMenuExample example);
}
